package com.fyzk.activity.zhifu.zc;

import com.fyzk.bean.ZCGameQueueItem;
import com.fyzk.utils.LotteryIDUtils;

public class ZhiFu_BQC_Activity extends ZhiFu_ZC_Activity {

    @Override
    protected int getMinChangCi() {
        return 6;
    }

    @Override
    protected ZhiFu_ZC_Adapter getZhiFuAdapter() {
        return new ZhiFu_BQC_Adapter(this, infors);
    }

    @Override
    protected String getWcodeID() {
        String wcodeID = "";
        if (zhushu > 1) {
            wcodeID = "" + LotteryIDUtils.ZCBQC_LOTTERY_COMMON_FU_INT;
        }else{
            wcodeID = "" + LotteryIDUtils.ZCBQC_LOTTERY_COMMON_DAN_INT;
        }
        return wcodeID;
    }

    @Override
    public int getZhushu() {
        int zhu = 1;
        for (int i = 0; i < infors.size(); i++) {
            ZCGameQueueItem info = infors.get(i);

            if ((info.isBanSheng || info.isBanPing || info.isBanFu) &&
                    (info.isQuanSheng || info.isQuanPing || info.isQuanFu)) {
                changCi++;
            }

            zhu *= info.ban_clickNum * info.quan_clickNum;
        }
        zhushu = zhu;
        return zhushu;
    }
}
